package ru.niir.goodfil.audit.domain;

import ru.niir.goodfil.audit.domain.enums.Crud;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@Entity
public class ReplacementUIEvent extends Event {
    @Enumerated(EnumType.STRING)
    private Crud crud;

    @Column(length = 10)
    private String replacementId;

    @Column(length = 10)
    private String managerId;

    @Column(length = 100)
    private String managerName;

    @Column(length = 10)
    private String assistantId;

    @Column(length = 100)
    private String assistantName;

    @Column(length = 50)
    private String begdate;

    @Column(length = 50)
    private String enddate;

    public Crud getCrud() {
        return crud;
    }

    public void setCrud(Crud crud) {
        this.crud = crud;
    }

    public String getManagerId() {
        return managerId;
    }

    public void setManagerId(String managerId) {
        this.managerId = managerId;
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public String getAssistantId() {
        return assistantId;
    }

    public void setAssistantId(String assistantId) {
        this.assistantId = assistantId;
    }

    public String getAssistantName() {
        return assistantName;
    }

    public void setAssistantName(String assistantName) {
        this.assistantName = assistantName;
    }

    public String getBegdate() {
        return begdate;
    }

    public void setBegdate(String begdate) {
        this.begdate = begdate;
    }

    public String getEnddate() {
        return enddate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }

    public String getReplacementId() {
        return replacementId;
    }

    public void setReplacementId(String replacementId) {
        this.replacementId = replacementId;
    }

    @Override
    public String toString() {
        return "ReplacementUIEvent{" +
                "crud=" + crud +
                ", replacementId='" + replacementId + '\'' +
                ", managerId='" + managerId + '\'' +
                ", managerName='" + managerName + '\'' +
                ", assistantId='" + assistantId + '\'' +
                ", assistantName='" + assistantName + '\'' +
                ", begdate='" + begdate + '\'' +
                ", enddate='" + enddate + '\'' +
                '}';
    }
}
